<?php if(!defined('EMLOG_ROOT')) {exit('error!');}?>
<?php if($page_url) { ?>
<div  class="ui-bar ui-bar-c arrayBtn" data-position="inline">
<div id="pagenavi">
 <?php echo $page_url;?>
</div>
</div>
<?php } ?>

<ul data-role="listview" data-divider-theme="b" >
<li data-role="list-divider" role="heading">主题</li>
	<?php foreach($logs as $value): ?>
       <li data-theme="c">
		<a href="<?php echo BLOG_URL; ?>wap/?post=<?php echo $value['logid'];?>"class="block_a ui-link-inherit" data-transition="none"><?php echo $value['log_title']; ?></a>
       </li>
	<?php endforeach; ?>
</ul>

<div class="typeSort" data-role="collapsible">
<h4>最新日记</h4>
<?php global $CACHE; $newLogs_cache = $CACHE->readCache('newlog');	?>
<?php foreach($newLogs_cache as $value): ?>  	
<p>
<a href="./?post=<?php echo $value['gid']; ?>" class="typeid" data-role="button" data-transition="none"><?php echo $value['title']; ?></a>
</p>
<?php endforeach; ?>
</div>

<div class="typeSort" data-role="collapsible">
<h3>友情链接</h3>
<?php global $CACHE; $link_cache = $CACHE->readCache('link');?>
	<?php foreach($link_cache as $value): ?>
<p>
<a href="<?php echo $value['url']; ?>wap" class="typeid" data-role="button" data-transition="none"><?php echo $value['link']; ?></a>
</p>
<?php endforeach; ?>
</div>
